// app/model/user.js
module.exports = app => {
    const { INTEGER, STRING } = app.Sequelize;
     const User = app.model.define('user', {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      username: { type: STRING(50), allowNull: false },
      password: { type: STRING(50), allowNull: false },
    });
     return User;
  };